home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 July
/
CMCD0704.ISO
/
Software
/
Freeware
/
Comunicatii
/
htttrack
/
httrack-3.32-2.exe
/
{app}
/
src_win
/
WinHTTrack
/
Wizard2.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2003-12-29
|
2KB
|
85 lines
// wizard2.cpp : implementation file
//
#include "stdafx.h"
#include "Shell.h"
#include "wizard2.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern HICON httrack_icon;
/////////////////////////////////////////////////////////////////////////////
// wizard2 dialog
wizard2::wizard2(CWnd* pParent /*=NULL*/)
: CDialog(wizard2::IDD, pParent)
{
//{{AFX_DATA_INIT(wizard2)
m_question = _T("");
//}}AFX_DATA_INIT
}
void wizard2::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(wizard2)
DDX_Text(pDX, IDC_question, m_question);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(wizard2, CDialog)
//{{AFX_MSG_MAP(wizard2)
ON_WM_TIMER()
ON_WM_DESTROY()
//}}AFX_MSG_MAP
ON_COMMAND(ID_HELP, OnHelp)
END_MESSAGE_MAP()
BOOL wizard2::OnInitDialog()
{
CDialog::OnInitDialog();
SetIcon(httrack_icon,false);
SetIcon(httrack_icon,true);
tm=SetTimer(WM_TIMER,1000,NULL);
SetForegroundWindow(); // yop en premier plan!
// Patcher l'interface pour les Franτais ;-)
if (LANG_T(-1)) { // Patcher en franτais
//SetDlgItemText(,"");
SetWindowTextCP(this, LANG(LANG_N1)); // "Question du wizard");
SetDlgItemTextCP(this, IDCANCEL,LANG(LANG_N2)); // "NON");
}
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void wizard2::OnTimer(UINT nIDEvent)
{
wflag=!wflag;
FlashWindow(wflag);
CDialog::OnTimer(nIDEvent);
}
void wizard2::OnDestroy()
{
if (tm!=0) {
KillTimer(tm);
tm=-1;
}
CDialog::OnDestroy();
}